package com.mzy.javaapi.generalApi;

import org.testng.annotations.Test;

import java.util.ArrayList;

/**
 * @author Ives
 * * @date 2021/12/7
 */
public class IndexOf {

    /**
     * 如果字符串中，如果存在返回0
     * 不存在返回-1
     */
    @Test
    public void demo() throws IllegalAccessException, InstantiationException {
        String a = "abcd";
        System.out.println(a.indexOf("a"));

        ArrayList<Object> objects = new ArrayList<>();
        objects.add("111");
        objects.add("111");
        objects.add("111");
        objects.add("111");


//    objects.parallelStream()

      ArrayList arrayList = objects.getClass().newInstance();

    }
}
